<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateExamineStepsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('examine_step', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->integer('flow_id')->comment('审批流程id');
            $table->tinyInteger('status')->comment('1负责人主管，2指定用户（任意一人');
            $table->string('user_id')->comment('审批人ID (使用逗号隔开) ,1,2,');
            $table->tinyInteger('order_id')->comment('排序id')->default(1);
            $table->tinyInteger('relation')->comment('审批流程冠希（1并2或）')->default(1);
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('examine_steps');
    }
}
